package com.blue.service.system;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blue.po.system.MessagePO;
import com.blue.po.workflow.TaskInstancePO;

import java.util.List;
import java.util.Map;

/**
 * 系统消息表
 *
 * @author nanjie.chen
 * @email 15696471158@163.com
 * @date 2025-03-14
 */
public interface IMessageService extends IService<MessagePO> {
    Map<String, Long> unReadCount();

    //流程发送待办消息
    void sendTodoMessage(String instanceId, List<TaskInstancePO> taskInstancePOS, String definitionNm);

    //流程发送系统消息
    void sendSystemMessage(String recipient, String instanceId, String status, String definitionNm);

    //流程发送抄送消息
    void sendCcToMessage(List<String> ccToIds, String instanceId, String definitionNm);

}

